/* eslint max-lines: "off" */ //临时豁免 关闭ESLint的最大代码行数max-lines规则
// 订单-工单产品 WORKPARTMASTER
// 无订单-工单产品 NOWORKPARTMASTER
// 生产订单 PRODUCTION_ORDER_NO
// 序列号规则 SERIAL_NUMBER_RULE
// 成品包装 PRODUCTPACKING
// 标签模板 LABELTEMPLATE
// BOM物料信息 BOMPARTMASTER
// 物料信息 PARTMASTER
// 物料类别 PARTCATEGORY
// 过滤物料信息（精简） FILTERPARTMASTER
// BOM版本 BOMVERSION
// 合作伙伴 PARTNER
// 产线 LINE
// 用户 USER
// 物料负责人 SUPERVISORNAME
// 部门 DEPT
// 车间 WORKSHOP
// 班次 SHIFT
// 工单 WORKORDER
// 排程工单 WORKORDERPLAN
// 打印机 PRINTER
// 维修列表 REPAIRLIST
// 设备台账 EQUIPMENT
// 定外部条码开启时:外部条码规则 EXTERNALSEQUENCEDEFINITION
// 组装:外部条码规则 COMSEQUENCEDEFINITION
// 条码规则 SERIALNO
// ESOP
// 包装配置 PACKINGCONFIG
import { statusText } from '@/components/common-modal-template/statusText.js';
export let templateConfig = {
  // 订单-工单产品
  WORKPARTMASTER: [
    {
      label: '编码',
      prop: 'partNo',
      search: true
    },
    {
      label: '名称',
      prop: 'partName',
      search: true
    }
  ],
  // 无订单-工单产品
  NOWORKPARTMASTER: [
    {
      label: '编码',
      prop: 'partNo',
      search: true
    },
    {
      label: '名称',
      prop: 'name',
      search: true
    },
    {
      label: '型号',
      prop: 'partModel'
    }
  ],
  // 生产订单
  PRODUCTION_ORDER_NO: [
    {
      label: '生产订单',
      prop: 'productionOrderNo',
      searchSpan: 8,
      search: true
    },
    {
      label: '订单数量',
      prop: 'quantity'
    },
    {
      label: '产品编码',
      searchSpan: 8,
      prop: 'productPartNo',
      search: true
    },
    {
      label: '产品名称',
      prop: 'productPartName',
      searchSpan: 8,
      search: true
    },
    {
      label: 'BOM版本',
      prop: 'bomVersion',
      rules: [
        {
          required: true,
          message: '请输入BOM版本',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '计划开始日期',
      prop: 'planStartTime',
      rules: [
        {
          required: true,
          message: '请输入计划开始日期',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '计划结束日期',
      prop: 'planEndTime',
      rules: [
        {
          required: true,
          message: '请输入计划结束日期',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '销售订单号',
      prop: 'salesOrderNo',
      searchSpan: 8,
      search: true
    },
    {
      label: '客户信息',
      prop: 'customerName'
    },
    {
      label: '交货日期',
      prop: 'deliveryDate'
    },
    {
      label: '同步时间',
      prop: 'lastSyncTime'
    }
  ],
  // 序列号规则
  SERIAL_NUMBER_RULE: [
    {
      label: '类型',
      prop: 'type',
      search: true,
      type: 'select',
      dicUrl: '/api/blade-system/dict/dictionary?code=serial_number_rule_type',
      props: {
        label: 'dictValue',
        value: 'dictKey'
      },
      rules: [
        {
          required: true,
          message: '请输入序列号规则类型',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '名称',
      prop: 'name',
      search: true,
      rules: [
        {
          required: true,
          message: '请输入序列号规则名称',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '编码',
      prop: 'code',
      search: true,
      rules: [
        {
          required: true,
          message: '请输入序列号规则编码',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '进制字符',
      prop: 'hexString',
      hide: true,
      rules: [
        {
          required: true,
          message: '请输入进制字符',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '起始流水号',
      prop: 'startSequenceNo',
      hide: true,
      rules: [
        {
          required: true,
          message: '请输入起始流水号',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '结束流水号',
      prop: 'endSequenceNo',
      hide: true,
      rules: [
        {
          required: true,
          message: '请输入结束流水号',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '前缀字符',
      prop: 'prefix',
      rules: [
        {
          required: false,
          message: '请输入前缀字符',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '后缀字符',
      prop: 'suffix',
      rules: [
        {
          required: false,
          message: '请输入后缀字符',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '序列号规则',
      prop: 'sequenceNoFormat',
      formslot: true, // 定义form表单中字段的插槽
      labelTip:
        '[P]：前缀字符,[YY]：两位年份, [YYYY]：四位年份, [M]：月,<br />[W]：周, [D]：日,[S]：流水号, [N]：自定义字符。<br />[B]：后缀字符 <br />如：[YY][M][S][B]<br />若无流水号则没有[S],例如：[YY][M][B]',
      rules: [
        {
          required: true,
          message: '请输入序列号规则',
          trigger: 'change'
        }
      ]
    },
    {
      label: '规则位数',
      prop: 'charactersCount',
      type: 'number',
      precision: 0,
      minRows: 1,
      rules: [
        {
          required: false,
          message: '请输入序列号规则位数',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '年代码',
      type: 'year',
      prop: 'year'
    },
    {
      label: '月代码',
      type: 'month',
      prop: 'month',
      format: 'M'
    },
    {
      label: '周代码',
      type: 'week',
      prop: 'week',
      format: 'yyyy 第 WW 周'
    },
    {
      label: '日代码',
      type: 'date',
      prop: 'day',
      format: 'dd'
    },
    {
      label: '清零类型',
      prop: 'regressionType',
      type: 'select',
      dicData: [
        {
          label: '不清零',
          value: 'null'
        },
        {
          label: '年',
          value: 'yearType'
        },
        {
          label: '月',
          value: 'monthType'
        },
        {
          label: '周',
          value: 'weekType'
        },
        {
          label: '日',
          value: 'dayType'
        }
      ],
      rules: [
        {
          required: true,
          message: '请输入清零类型',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '增量',
      prop: 'incrementQty',
      type: 'number',
      hide: true,
      rules: [
        {
          required: false,
          message: '请输入增量',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '分组规则',
      prop: 'groupingRule',
      rules: [
        {
          required: false,
          message: '请输入分组规则',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '过滤字符',
      prop: 'filterChar',
      rules: [
        {
          required: false,
          message: '请输入过滤字符',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '分隔符',
      // 每个占位符之间的分隔符，用于识别外来编码每个部分的值，比如‘；’，‘/’等，如果需要用于识别条码，必须要配置分隔符。
      prop: 'delimiter',
      type: 'select',
      dicUrl: '/api/blade-system/dict/dictionary?code=delimiter_type',
      props: {
        label: 'dictValue',
        value: 'dictKey'
      },
      rules: [
        {
          required: true,
          message: '请选择分隔符',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '同时用于识别条码',
      // 每位占位符都代表着一定的业务意义，解析出来导入系统。比如约定WO代表工单号。
      prop: 'isIdentifyAlso',
      type: 'switch', //开关的类型
      align: 'center',
      width: 100,
      dicData: [
        {
          label: '否',
          value: false
        },
        {
          label: '是',
          value: true
        }
      ],
      value: 0,
      slot: true,
      rules: [
        {
          required: true,
          message: '请选择是否同时用于识别条码',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '占位符替换',
      // 如果是，需要在mes_sequence_holder_replacement增加规则。
      prop: 'requirePlaceholderReplacement',
      type: 'switch', //开关的类型
      align: 'center',
      width: 100,
      dicData: [
        {
          label: '否',
          value: false
        },
        {
          label: '是',
          value: true
        }
      ],
      value: 0,
      slot: true,
      rules: [
        {
          required: true,
          message: '是否需要占位符替换',
          trigger: 'blur'
        }
      ]
    }
  ],
  // 成品包装
  productpacking: [
    {
      label: '编码',
      prop: 'code',
      search: true,
      rules: [
        {
          required: true,
          message: '请输入编码',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '名称',
      prop: 'name',
      search: true,
      rules: [
        {
          required: true,
          message: '请输入名称',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '产品编码',
      prop: 'partNo',
      type: 'search',
      disabled: true,
      rules: [
        {
          required: true,
          message: '请选择产品编码',
          trigger: 'blur'
        }
      ],
      appendClick: () => {
        this.openPartCommonModal();
      }
    },
    {
      label: '产品名称',
      prop: 'partMasterName',
      disabled: true
    },
    {
      label: '产品规格',
      prop: 'partModel',
      disabled: true
    },
    {
      label: '线上打条码',
      prop: 'isOnlinePrint',
      type: 'switch',
      value: false,
      dicData: [
        {
          label: '否',
          value: false
        },
        {
          label: '是',
          value: true
        }
      ]
    },
    {
      label: '备注',
      prop: 'remark',
      type: 'textarea',
      minRows: 3 //定义多行文本最小行数
    }
  ],
  // 标签模板
  LABELTEMPLATE: [
    {
      label: '名称',
      prop: 'fileName',
      search: true
    },
    {
      label: '代码',
      prop: 'code',
      search: true
    },
    {
      label: '缩略图',
      prop: 'thumbnailUrl',
      type: 'upload',
      loadText: '缩略图上传中，请稍等',
      propsHttp: {
        url: 'link',
        name: 'originalName',
        res: 'data'
      },
      listType: 'picture',
      limit: 1,
      accept: 'image/png, image/jpeg, image/jpg',
      tip: '只能上传png/jpeg/jpg文件',
      action: '/api/blade-resource/oss/endpoint/put-file-attach'
    },
    {
      label: '标签地址',
      prop: 'fileUrl'
    },
    {
      label: '打印列数',
      prop: 'columnCount'
    },
    {
      label: '打印份数',
      prop: 'copies'
    },
    {
      label: '客户',
      prop: 'clientName'
    }
  ],
  // 物料信息
  PARTMASTER: [
    {
      label: '类别',
      prop: 'categoryId',
      search: true,
      type: 'tree',
      dicUrl: '/api/mes-admin/part-category/tree',
      props: {
        label: 'title',
        value: 'id'
      }
    },
    {
      label: '编码',
      prop: 'partNo',
      search: true
    },
    {
      label: '名称',
      prop: 'name',
      search: true
    },
    {
      label: '型号',
      prop: 'partModel'
    },
    // {
    //   label: '描述',
    //   prop: 'description'
    // },
    // {
    //   label: '版本',
    //   prop: 'revision'
    // },
    {
      label: '仓库物料类别',
      prop: 'partType',
      props: {
        label: 'dictValue',
        value: 'dictKey'
      },
      dicUrl: '/api/blade-system/dict/dictionary?code=part_type'
    }
  ],
  BOMPARTMASTER: [
    {
      label: '类别',
      prop: 'categoryName'
      // type: 'tree',
      // dicUrl: '/api/mes-admin/part-category/tree',
      // props: {
      //   label: 'title',
      //   value: 'id'
      // }
    },
    {
      label: '物料编码',
      prop: 'partNo',
      search: true
    },
    {
      label: '物料名称',
      prop: 'name',
      search: true
    },
    {
      label: '物料规格',
      prop: 'partSpec'
    },
    {
      label: '描述',
      prop: 'description'
    },
    {
      label: '版本',
      prop: 'revision'
    }
  ],
  FILTERPARTMASTER: [
    {
      label: '类型',
      prop: 'categoryName'
    },
    {
      label: '编码',
      prop: 'partNo',
      search: true
    },
    {
      label: '名称',
      prop: 'partName',
      search: true
    },
    {
      label: '型号',
      prop: 'partModel'
    },
    {
      label: '仓库物料类别',
      prop: 'partType',
      props: {
        label: 'dictValue',
        value: 'dictKey'
      },
      dicUrl: '/api/blade-system/dict/dictionary?code=part_type'
    }
  ],
  // BOM版本
  BOMVERSION: [
    {
      label: '编号',
      prop: 'bomNo',
      search: true,
      rules: [
        {
          required: true,
          message: '请输入编号',
          trigger: 'blur'
        }
      ]
    },
    // {
    //   label: 'BOM类型',
    //   prop: 'bomType',
    //   type: 'select',
    //   search: true,
    //   dicUrl: '/api/blade-system/dict/dictionary?code=bom_type',
    //   props: {
    //     label: 'dictValue',
    //     value: 'dictKey'
    //   },
    //   rules: [
    //     {
    //       required: true,
    //       message: '请选择类型',
    //       trigger: 'blur'
    //     }
    //   ]
    // },
    {
      label: '版本',
      prop: 'bomVersion',
      search: true,
      rules: [
        {
          required: true,
          message: '请输入版本',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '物料编码',
      prop: 'partNo',
      type: 'search',
      disabled: true,
      appendClick: () => {
        this.openCommonModal();
      },
      rules: [
        {
          required: true,
          message: '请输入物料编码',
          trigger: 'blur'
        }
      ]
    },
    // {
    //   label: '源创建日期',
    //   prop: 'sourceCreateDate',
    //   type: 'datetime',
    //   format: 'yyyy-MM-dd HH:mm:ss',
    //   valueFormat: 'yyyy-MM-dd HH:mm:ss',
    //   rules: [
    //     {
    //       required: true,
    //       message: '请输入源创建日期',
    //       trigger: 'blur'
    //     }
    //   ]
    // },
    {
      label: '源数据审核日期',
      prop: 'sourceAduitDate',
      type: 'datetime',
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      rules: [
        {
          required: true,
          message: '请输入源数据审核日期',
          trigger: 'blur'
        }
      ]
    }
    // {
    //   label: '密度',
    //   prop: 'density',
    //   rules: [
    //     {
    //       required: true,
    //       message: '请输入密度',
    //       trigger: 'blur'
    //     }
    //   ]
    // }
  ],
  // 合作伙伴
  PARTNER: [
    // {
    //   label: '类型',
    //   prop: 'partnerType',
    //   type: 'select',
    //   dicUrl: '/api/blade-system/dict/dictionary?code=partner_type',
    //   props: {
    //     label: 'dictValue',
    //     value: 'dictKey'
    //   },
    //   rules: [
    //     {
    //       required: true,
    //       message: '请输入类型',
    //       trigger: 'blur'
    //     }
    //   ]
    // },
    {
      label: '编码',
      prop: 'code',
      search: true,
      rules: [
        {
          required: true,
          message: '请输入编码',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '名称',
      prop: 'name',
      search: true,
      rules: [
        {
          required: true,
          message: '请输入',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '缩写',
      prop: 'abbreviation',
      rules: [
        {
          required: true,
          message: '请输入缩写',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '联系人',
      prop: 'principal',
      rules: [
        {
          required: true,
          message: '请输入联系人',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '联系方式',
      prop: 'contacts'
      // formatter: (data) => {
      //   let contacts = JSON.parse(data.contacts || '{}');
      //   return String(contacts.phone || '');
      // },
      // rules: [
      //   {
      //     required: true,
      //     message: '请输入联系方式',
      //     trigger: 'blur'
      //   }
      // ]
    }
    // {
    //   label: '位置',
    //   prop: 'locationLists',
    //   type: 'search',
    //   disabled: true,
    //   formatter: (data) => {
    //     let locationName = [];
    //     let locationList = data.locationLists;
    //     if (locationList && locationList.length > 0) {
    //       for (let i = 0; i < locationList.length; i++) {
    //         locationName.push(locationList[i].name);
    //       }
    //     }
    //     return String(locationName);
    //   }
    // },
    // {
    //   label: '条码规则',
    //   prop: 'sequenceDefinitionName',
    //   type: 'search'
    // }
  ],
  // 产线
  LINE: [
    {
      label: '产线编码',
      prop: 'code',
      order: 1,
      search: true,
      rules: [
        {
          required: true,
          message: '请输入产线编码',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '产线名称',
      prop: 'name',
      order: 2,
      search: true,
      rules: [
        {
          required: true,
          message: '请输入产线名称',
          trigger: 'blur'
        }
      ]
    }
  ],
  // 用户
  USER: [
    {
      label: '登录账号',
      prop: 'account',
      search: true,
      display: false
    },
    {
      label: '所属租户',
      prop: 'tenantName',
      slot: true,
      display: false
    },
    {
      label: '用户姓名',
      prop: 'realName',
      search: true,
      display: false
    },
    {
      label: '所属角色',
      prop: 'roleName',
      slot: true,
      display: false
    },
    {
      label: '所属部门',
      prop: 'deptName',
      slot: true,
      display: false
    },
    {
      label: '用户平台',
      prop: 'userTypeName',
      slot: true,
      display: false
    },
    {
      label: '电话号码',
      prop: 'phone',
      display: false
    }
  ],
  SUPERVISORNAME: [
    {
      label: '用户名',
      prop: 'supervisorName',
      search: true
    },
    {
      label: '账号名',
      prop: 'supervisorAccount',
      search: true
    }
  ],
  // 班组管理用户
  CLASS_GROUP_USER: [
    {
      label: '登录账号',
      prop: 'userCode',
      search: true,
      display: false
    },
    {
      label: '所属租户',
      prop: 'tenantName',
      slot: true,
      display: false
    },
    {
      label: '用户姓名',
      prop: 'userName',
      search: true,
      display: false
    },
    {
      label: '所属角色',
      prop: 'roleName',
      slot: true,
      display: false
    },
    {
      label: '所属部门',
      prop: 'deptName',
      slot: true,
      display: false
    },
    {
      label: '用户平台',
      prop: 'userTypeName',
      slot: true,
      display: false
    },
    {
      label: '电话号码',
      prop: 'phone',
      display: false
    },
    {
      label: '班组名称',
      prop: 'shiftGroupName',
      display: false
    }
  ],
  // 部门
  DEPT: [
    {
      label: '名称',
      prop: 'deptName'
    },
    {
      label: '全称',
      prop: 'fullName'
    },
    {
      label: '地址',
      prop: 'locationName'
    },
    {
      label: '法人',
      prop: 'principalName'
    },
    {
      label: '成立日期',
      prop: 'registerDate',
      type: 'date',
      format: 'yyyy-MM-dd'
    },
    {
      label: '备注',
      prop: 'remark'
    }
  ],
  // 车间
  WORKSHOP: [
    {
      label: '车间编码',
      prop: 'code'
    },
    {
      label: '车间名称',
      prop: 'name'
    },
    {
      label: '所属部门',
      prop: 'deptName'
    },
    {
      label: '车间负责人',
      prop: 'principleName'
    },
    {
      label: '联系方式',
      prop: 'contacts'
    },
    {
      label: '备注',
      prop: 'remark'
    }
  ],
  // 班次
  SHIFT: [
    {
      label: '班次名称',
      prop: 'name'
    },
    {
      label: '班次类型',
      prop: 'type',
      type: 'select',
      dicUrl: '/api/blade-system/dict/dictionary?code=shift_type',
      props: {
        label: 'dictValue',
        value: 'dictKey'
      }
    },
    {
      label: '班次时间',
      prop: 'shiftFrom',
      formatter: (row, value, label, column) => {
        return value + '~' + row.shiftTo;
      }
    },
    {
      label: '备注',
      prop: 'remark'
    }
  ],
  // 工单
  WORKORDER: [
    {
      label: '生产订单',
      prop: 'productionOrderNo'
    },
    {
      label: '生产工单',
      prop: 'workOrderNo',
      search: true,
      order: 2
    },
    {
      label: '工单类型',
      prop: 'type',
      type: 'select',
      order: 5,
      dicUrl: '/api/blade-system/dict/dictionary?code=order_type',
      props: {
        label: 'dictValue',
        value: 'dictKey'
      }
    },
    {
      label: '工单计划数量',
      prop: 'planQuantity'
    },
    {
      label: '产品编码',
      prop: 'productPartNo',
      search: true,
      searchType: 'input',
      type: 'search',
      disabled: true,
      order: 3,
      placeholder: '请选择 产品编码'
    },
    {
      label: '产品名称',
      prop: 'productPartName',
      search: true,
      order: 4,
      disabled: true
    },
    {
      label: '产品型号',
      prop: 'productPartModel',
      search: true
    },
    {
      label: '状态',
      prop: 'status',
      type: 'select',
      search: true,
      order: 10,
      html: true,
      formatter: (val) => statusText.GD(val.status),
      props: {
        label: 'dictValue',
        value: 'dictKey'
      },
      dicUrl: '/api/blade-system/dict/dictionary?code=mfg_work_order'
    }
  ],
  // 排程工单
  WORKORDERPLAN: [
    {
      label: '生产订单',
      search: true,
      prop: 'productionOrderNo'
    },
    {
      label: '生产工单',
      prop: 'workOrderNo',
      search: true,
      rules: [
        {
          required: true,
          message: '请输入生产工单',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '工单类型',
      prop: 'type',
      type: 'select',
      rules: [
        {
          required: true,
          message: '请选择工单类型',
          trigger: 'change'
        }
      ],
      dicUrl: '/api/blade-system/dict/dictionary?code=order_type',
      props: {
        label: 'dictValue',
        value: 'dictKey'
      }
    },
    {
      label: '工单数量',
      prop: 'planQuantity'
    },
    {
      label: '产品编码',
      prop: 'productPartNo',
      search: true,
      searchType: 'input',
      type: 'search',
      placeholder: '请选择 产品编码'
    },
    {
      label: '产品名称',
      prop: 'productPartName'
    },
    {
      label: '计划开始时间',
      prop: 'planStartTime',
      type: 'datetime',
      width: 130
    },
    {
      label: '计划结束时间',
      prop: 'planEndTime',
      type: 'datetime',
      width: 130
    },
    {
      label: '工单状态',
      prop: 'status',
      type: 'select',
      html: true,
      formatter: (val) => statusText.GD(val.status),
      props: {
        label: 'dictValue',
        value: 'dictKey'
      },
      dicUrl: '/api/blade-system/dict/dictionary?code=mfg_work_order',
      rules: [
        {
          required: true,
          message: '请输入状态',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '工艺路线状态',
      width: 100,
      prop: 'woProcessStatus',
      type: 'switch',
      value: false,
      dicData: [
        {
          label: '未设计',
          value: 1
        },
        {
          label: '待审核',
          value: 2
        },
        {
          label: '已发布',
          value: 3
        }
      ],
      html: true,
      formatter: (val) => statusText.GYLX(val.woProcessStatus)
    }
  ],
  // 打印机
  PRINTER: [
    {
      label: '打印机编码',
      prop: 'code',
      search: true,
      searchLabelWidth: 110
    },
    {
      label: '打印机名称',
      prop: 'name',
      search: true,
      searchLabelWidth: 110
    }
  ],
  REPAIRLIST: [
    {
      label: '条码类型',
      prop: 'objectType',
      search: true,
      searchOrder: 2,
      type: 'select',
      dicData: [
        {
          label: '产品序列号',
          value: 'PRODUCT'
        },
        {
          label: '包装条码',
          value: 'PACKING'
        },
        {
          label: '载具',
          value: 'CARRIER'
        }
      ]
    },
    {
      label: '序列号',
      prop: 'productSequenceNumber',
      search: true,
      searchOrder: 3
    },
    {
      label: '工单号',
      prop: 'workOrderNo',
      search: true,
      searchOrder: 1
    },
    {
      label: '产品编码',
      prop: 'partNo'
    },
    {
      label: '产品名称',
      prop: 'partName'
    },
    {
      label: '维修执行人',
      prop: 'repairByName',
      search: true,
      searchOrder: 4
    },
    {
      label: '维修站',
      prop: 'repairCenterName',
      search: true,
      searchOrder: 5,
      type: 'select',
      dicData: []
    },
    {
      label: '维修开始时间',
      prop: 'repairStartTime',
      searchType: 'datetimerange',
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      startPlaceholder: '开始时间',
      endPlaceholder: '结束时间'
    },
    {
      label: '维修结束时间',
      prop: 'repairEndTime',
      searchType: 'datetimerange',
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      startPlaceholder: '开始时间',
      endPlaceholder: '结束时间'
    },
    {
      label: '维修代码',
      prop: 'repairCode',
      search: true,
      searchOrder: 6,
      type: 'select',
      dicData: []
    },
    {
      label: '备注',
      prop: 'repairRemark'
    },
    {
      label: '维修确认人',
      prop: 'createByName'
    },
    {
      label: '维修确认时间',
      prop: 'createTime',
      searchType: 'datetimerange',
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      startPlaceholder: '开始时间',
      endPlaceholder: '结束时间'
    },
    {
      label: '维修确认结果',
      prop: 'repairHandlingResult',
      search: true,
      searchOrder: 7,
      type: 'select',
      dicData: [
        {
          label: '重新维修',
          value: 'REMRO'
        },
        {
          label: '维修成功',
          value: 'SUCCESS'
        },
        {
          label: '维修报废',
          value: 'SCRAP'
        }
      ]
    }
  ],
  EQUIPMENT: [
    {
      label: '编码',
      prop: 'code',
      search: true
    },
    {
      label: '名称',
      prop: 'name',
      search: true
    },
    {
      label: '状态',
      prop: 'status',
      type: 'select',
      dicUrl: '/api/blade-system/dict/dictionary?code=tooling_fixture_status',
      props: {
        label: 'dictValue',
        value: 'dictKey'
      },
      search: true
    },
    {
      label: '品牌',
      prop: 'brand'
    },
    {
      label: '设备型号',
      prop: 'model'
    }
  ],
  PARTCATEGORY: [
    {
      label: '物料类别编码',
      prop: 'code',
      searchLabelWidth: 120,
      search: true
    },
    {
      label: '物料类别名称',
      prop: 'name',
      searchLabelWidth: 120,
      search: true
    }
  ],
  EXTERNALSEQUENCEDEFINITION: [
    {
      label: '规则名称',
      prop: 'name',
      search: true
    },
    {
      label: '序列号ID',
      prop: 'code',
      search: true
    },
    {
      label: '起始流水号',
      prop: 'startSequenceNo'
    },
    {
      label: '结束流水号',
      prop: 'endSequenceNo'
    },
    {
      label: '清零类型',
      prop: 'regressionType',
      type: 'select',
      value: 'yearType',
      dicData: [
        {
          label: '不清零',
          value: ''
        },
        {
          label: '年',
          value: 'yearType'
        },
        {
          label: '月',
          value: 'monthType'
        },
        {
          label: '周',
          value: 'weekType'
        },
        {
          label: '日',
          value: 'dayType'
        }
      ]
    },
    {
      label: '序列号构成规则',
      prop: 'sequenceNoFormat'
    }
  ],
  COMSEQUENCEDEFINITION: [
    {
      label: '规则名称',
      prop: 'name',
      search: true
    },
    {
      label: '序列号ID',
      prop: 'code',
      search: true
    },
    {
      label: '起始流水号',
      prop: 'startSequenceNo'
    },
    {
      label: '结束流水号',
      prop: 'endSequenceNo'
    },
    {
      label: '清零类型',
      prop: 'regressionType',
      type: 'select',
      value: 'yearType',
      dicData: [
        {
          label: '不清零',
          value: ''
        },
        {
          label: '年',
          value: 'yearType'
        },
        {
          label: '月',
          value: 'monthType'
        },
        {
          label: '周',
          value: 'weekType'
        },
        {
          label: '日',
          value: 'dayType'
        }
      ]
    },
    {
      label: '序列号构成规则',
      prop: 'sequenceNoFormat'
    }
  ],
  SERIALNO: [
    {
      label: '序列号规则名称',
      prop: 'name',
      search: true,
      searchLabelWidth: 150,
      searchSpan: 8
    },
    {
      label: '序列号规则编码',
      prop: 'code',
      search: true,
      searchLabelWidth: 150,
      searchSpan: 8
    },
    {
      label: '进制符',
      prop: 'hexString'
    },
    {
      label: '起始流水号',
      prop: 'startSequenceNo'
    },
    {
      label: '序列号规则',
      prop: 'sequenceNoFormat'
    }
  ],
  ESOP: [
    {
      label: '附件地址',
      prop: 'link',
      rules: [
        {
          required: true,
          message: '请输入附件地址',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '附件域名',
      prop: 'domain',
      search: true,
      rules: [
        {
          required: true,
          message: '请输入附件域名',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '附件名称',
      prop: 'name',
      search: true,
      rules: [
        {
          required: true,
          message: '请输入附件名称',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '附件原名',
      prop: 'originalName',
      search: true,
      rules: [
        {
          required: true,
          message: '请输入附件原名',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '附件拓展名',
      prop: 'extension',
      rules: [
        {
          required: true,
          message: '请输入附件拓展名',
          trigger: 'blur'
        }
      ]
    },
    {
      label: '附件大小',
      prop: 'attachSize',
      slot: true,
      rules: [
        {
          required: true,
          message: '请输入附件大小',
          trigger: 'blur'
        }
      ]
    }
  ],
  PACKINGCONFIG: [
    {
      label: '包装名称',
      prop: 'name'
    },
    {
      label: '产品编码',
      prop: 'productPartNo',
      search: true
    },
    {
      label: '产品名称',
      prop: 'productPartName'
    },
    {
      label: '产品规格',
      prop: 'productPartModel'
    },
    {
      label: '包装数量',
      prop: 'packingSpecQty'
    }
  ]
};
